import request, { Method, buyerUrl, expertUrl } from "@/plugins/request.js";
// 获取场地列表
export function getAdress(data) {
  return request({
    url: expertUrl + "/expert/site/site/isReservable/" + data.id,
    method: Method.GET,
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
    needToken: true,
    data,
  });
}
// 获取专家列表
export function getExpert(data) {
  return request({
    url: expertUrl + "/expert/site/siteRoomTime/allTimePeriodsBySiteId/" + data.siteId + "/" + data.week,
    method: Method.GET,
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
    needToken: true,
    data,
  });
}